from google.appengine.ext import db

class UserRecord(db.Expando):
    "Common information for the user. Parent for UserSnapshot classes"
    account = db.UserProperty()
    user_name = db.StringProperty()
    date = db.DateTimeProperty(auto_now_add=True)

    adapters = db.StringListProperty()   # list of enabled adapters

class UserSnapshot(db.Expando):
    "User statistics for particular moment and server"
    date = db.DateTimeProperty(auto_now_add=True)

    server = db.StringProperty()
    rating = db.IntegerProperty()
